package com.acme.bankapp.service.bank;

import com.acme.bankapp.domain.bank.Bank;
import com.acme.bankapp.domain.bank.Client;

public class BankService {
	public static void addClient(Bank bank, Client client) {
		bank.addClient(client);
	}
	
	public static void printMaximumAmountToWithdraw(Bank bank) {
		Client[] clients = bank.getClients();
		for (Client client : clients) {
			System.out.printf("%s:\t%.2f%n",
					client.getClientSalutation(),
					client.getAccount().maximumAmountToWithdraw());
		}
	}
}
